import 'package:flutter/material.dart';



class Search extends StatelessWidget {

  final dynamic arguments;

  Search({Key key,this.arguments}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Scaffold(
        appBar: AppBar(
          title: Text("appbarDemopage"),
          backgroundColor:Colors.red,
          centerTitle: true,
          bottom: TabBar(
            tabs: <Widget>[
              Tab(text: "热门"),
              Tab(text: "推荐"),
            ],
          ),
          leading: IconButton(
            icon: Icon(Icons.arrow_back_ios),
            onPressed: (){
              Navigator.of(context).pop();
            },
          ),
          actions: <Widget>[
            IconButton(
              icon: Icon(Icons.search),
              onPressed: (){

              },
            )
          ],
        ),
        body: Center(
          child: TabBarView(
            children: <Widget>[
              ListView(
                children: <Widget>[
                  ListTile(
                    title: Text("热门"),
                  ),
                   ListTile(
                    title: Text("热门"),
                  ),
                ],
              ),
              ListView(
                children: <Widget>[
                  ListTile(
                    title: Text("推荐"),
                  ),
                   ListTile(
                    title: Text("推荐"),
                  ),
                ],
              )
            ],
          ),
        ),
      ) ,
    );



  }
}
